using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NCS.Module.Multimedia.Library.Providers;

namespace NCS.Module.Multimedia.Library.Gallery
{
    public class PictureController
    {
        public static PictureInfo GetPicture(int picid)
        {
            return DataAccessProvider.instance().GetPicture(picid);
        }
        public static int Picture_Insert(PictureInfo picture)
        {
            
           return DataAccessProvider.instance().Picture_Insert(picture);
             
        }
        public static void Picture_Delete(int picid)
        {
            DataAccessProvider.instance().Picture_Delete(picid);
        }
        public static DataTable Picture_GetAll(int portalid)
        {
            return DataAccessProvider.instance().Picture_GetAll(portalid);
        }
        public static DataTable Picture_GetAllByAlbumID(int albumid)
        {
            return DataAccessProvider.instance().Picture_GetAllByAlbumID(albumid);
        }
        public static DataTable Picture_GetAllByAlbumIDAndVisible(int albumid, int visible)
        {
            return DataAccessProvider.instance().Picture_GetAllByAlbumIDAndVisible(albumid, visible);        
        }
        public static void Picture_Update(PictureInfo picture)
        {
            DataAccessProvider.instance().Picture_Update(picture);
        }
        public static void Picture_SetIndex(int picid, int index)
        {
            DataAccessProvider.instance().Picture_SetIndex(picid, index);
        }
    }
}
